package com.neusoft.blog.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

//`id` int(11) auto_increment,
//        `title` varchar(100) not null comment '文章标题',
//        `edittime` datetime  default now() comment '编辑时间',
//        `publishtime` datetime  default now() comment '发布时间',
//        `uid` int(11) comment '作者id',
//        `cid`  int(11) comment '所属栏目id',
//        `makdownContent` LONGTEXT comment '文章内容，makdown部分',
//        `htmlContent`  LONGTEXT comment '文章内容，html部分',
//        `status`  int(1) comment '文章状态 1已发表，2草稿箱，3回收站',
//文章表
public class Article {
    private Integer id;
    private  String title;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date edittime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date publishtime;
    private  UserUtile userUtile;
    private  Category category;
    private  String makdownContent;
    private  String htmlContent;
    private Integer status;
    private Integer views;

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getEdittime() {
        return edittime;
    }

    public void setEdittime(Date edittime) {
        this.edittime = edittime;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publishtime) {
        this.publishtime = publishtime;
    }

    public UserUtile getUserUtile() {
        return userUtile;
    }

    public void setUserUtile(UserUtile userUtile) {
        this.userUtile = userUtile;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public String getMakdownContent() {
        return makdownContent;
    }

    public void setMakdownContent(String makdownContent) {
        this.makdownContent = makdownContent;
    }

    public String getHtmlContent() {
        return htmlContent;
    }

    public void setHtmlContent(String htmlContent) {
        this.htmlContent = htmlContent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
